/**
 * Created by 建 on 2014/10/28.
 */
$(function () {
    $(".theme_tj").click(function () {
       window.location.href=basePath+"/theme/aucThemeManage-input.action";
        openEntity();
    });
    $(".theme_zj").mouseover(function () {
        $(this).find(".theme_xq").fadeIn("slow");
    });
    $(".theme_zj").mouseleave(function () {
        $(this).find(".theme_xq").fadeOut("slow");
    });
});
/**
 * 删除主题
 * @param obj
 */
function rm(obj) {
    var url = "./aucThemeManage-remove.action";
    if(window.confirm("确定删除该主题？")){
        $.post(url, {
            wid: obj
        }, function (data) {
            if (data.indexOf("删除成功") != -1) {
                alert("删除成功!");
                document.forms[0].action = "./aucThemeManage-list.action";
                document.forms[0].submit();
            } else{
                alert("删除失败");
            }
        });
    }
}